package com.utc.fjc.stylesheet;

import java.util.Map;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;

import com.teamcenter.rac.kernel.TCPropertyDescriptor;
import com.teamcenter.rac.viewer.stylesheet.beans.TextfieldPropertyBean;

public class FJCRevTextField extends TextfieldPropertyBean {

	public static String constRevId = "AA";

	public FJCRevTextField(FormToolkit formtoolkit, Composite composite,
			boolean flag, Map<Object, Object> map) {
		super(formtoolkit, composite, flag, map);
	}

	public void load(TCPropertyDescriptor des) throws Exception {
		super.load(des);
		des.setDefaultValue(constRevId);
		getTextField().setEnabled(false);
	}
}
